import Https from "@/utils/Https";

export const queryAllCourseReq = async (params) =>
  await Https.post("/course/category/categoryAllList", params);

export const queryPageDataReq = async (params) =>
  await Https.post("/course/category/categoryList", params);

export const addItemReq = async (params) =>
  await Https.post("/course/category/addCategory", params, true);
export const updateItemReq = async (params) =>
  await Https.post("/course/category/updateCategory", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/course/category/deleteCategory", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/course/category/categoryDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/course/category/updateCategory", params, true);
